package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName exam_exam
 */
@TableName(value ="exam_exam")
public class ExamExam implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 考试名称
     */
    private String examname;

    /**
     * 试卷id
     */
    private Integer paperid;

    /**
     * 开始时间
     */
    private String starttime;

    /**
     * 分组id
     */
    private Integer groupid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 考试名称
     */
    public String getExamname() {
        return examname;
    }

    /**
     * 考试名称
     */
    public void setExamname(String examname) {
        this.examname = examname;
    }

    /**
     * 试卷id
     */
    public Integer getPaperid() {
        return paperid;
    }

    /**
     * 试卷id
     */
    public void setPaperid(Integer paperid) {
        this.paperid = paperid;
    }

    /**
     * 开始时间
     */
    public String getStarttime() {
        return starttime;
    }

    /**
     * 开始时间
     */
    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    /**
     * 分组id
     */
    public Integer getGroupid() {
        return groupid;
    }

    /**
     * 分组id
     */
    public void setGroupid(Integer groupid) {
        this.groupid = groupid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ExamExam other = (ExamExam) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getExamname() == null ? other.getExamname() == null : this.getExamname().equals(other.getExamname()))
            && (this.getPaperid() == null ? other.getPaperid() == null : this.getPaperid().equals(other.getPaperid()))
            && (this.getStarttime() == null ? other.getStarttime() == null : this.getStarttime().equals(other.getStarttime()))
            && (this.getGroupid() == null ? other.getGroupid() == null : this.getGroupid().equals(other.getGroupid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getExamname() == null) ? 0 : getExamname().hashCode());
        result = prime * result + ((getPaperid() == null) ? 0 : getPaperid().hashCode());
        result = prime * result + ((getStarttime() == null) ? 0 : getStarttime().hashCode());
        result = prime * result + ((getGroupid() == null) ? 0 : getGroupid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", examname=").append(examname);
        sb.append(", paperid=").append(paperid);
        sb.append(", starttime=").append(starttime);
        sb.append(", groupid=").append(groupid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}